﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Smart.ReportingServices;
using Smart.UI.BaseClasses;

namespace Smart.Pages
{
    public partial class MealsReport : AuthenticatedPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            List<MealsReportView> all = Global.ReportingServices.GetMealsReport(CurrentUserId);

            grid.DataSource = all;   
            grid.DataBind();

            pieChartImage.ImageUrl = Global.ReportingServices.GetMealReportChartUrl(CurrentUserId);
        }
    }
}